<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class DeviceBranch extends Model
{
    use HasFactory;

    protected $table = 'device_branch';

    protected $fillable = ['device_id', 'name', 'sort_num'];

    public function Device()
    {
        return $this->belongsTo(Device::class, 'device_id');
    }


}
